<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
body {
	font-family: 돋움;
	font-size: 9pt
}

td {
	font-family: 돋움;
	font-size: 9pt
}
</style>
<script type="text/javascript">
function redi() {
	window.location.href = "/annotation_maven_spring/writeMailRedirect.do";
}
</script>
<title>Insert title here</title>
</head>
<body bgcolor="white" text="black" link="#CCCCFF" vlink="#99CCFF"
	alink="#9999FF">

	<h4>받은편지함</h4>
	<input type="button" value="메일작성" onclick="redi()" style="color: white; FONT-SIZE: 12pt; height: 25px; BACKGROUND-COLOR: blue; size: 30; margin-left: 700px"/>
	<table border=1 width=700 height=20 align=center>
		<tr>
			<td width=90 align=center>보낸사람</td>
			<td width=420 align=center>제목</td>
			<td width=90 align=center>도착시간</td>
		</tr>
		<tr>
			<c:if test="${fn:length(requestScope.mail) > 0}">
				<c:forEach var="i" items="${requestScope.mail}">
					<tr>
						<td align="center"><c:out value="${i.sender}" />
						</td>
						<td align="center">
						<a href="/annotation_maven_spring/readMailContent.do?index=<c:out value="${i.pageIndex}"/>">
							<c:out value="${i.subject}" />
						</a>
						</td>
						<td align="center"><c:out value="${i.receivedDate}" />
						</td>
					</tr>
				</c:forEach>
			</c:if>
		</tr>
	</table>
</body>
</html>